package org.szpshang.system.role.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 角色
 * @author 攻心小虫
 *
 */

@Entity
@Table(name = "SYS_ROLE", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
public class SysRole implements Serializable {

	private static final long serialVersionUID = -7460326468058272939L;

	private Integer roleid;

    private String roledesc;


	@Id
	@GenericGenerator(name = "native", strategy = "native")
	@GeneratedValue(generator = "native")
	@Column(name = "ROLEID", nullable = false, length = 0)
    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

	@Column(name = "ROLEDESC", length = 200)
    public String getRoledesc() {
        return roledesc;
    }

    public void setRoledesc(String roledesc) {
        this.roledesc = roledesc;
    }

}
